package com.rc.saas.mini.service.car;

import com.github.pagehelper.PageInfo;
import com.rc.saas.mini.common.base.BaseService;
import com.rc.saas.mini.mapper.car.TenantCarNumberMapper;
import com.rc.saas.mini.model.car.TenantCarNumber;
import com.rc.saas.mini.model.car.TenantCarNumberExample;
import com.rc.saas.mini.model.member.MemberInfo;

import java.util.List;

/**
 * @author wangzhengwei
 * @create 2021/12/22
 */
public interface TenantCarNumberService extends BaseService<Long, TenantCarNumber, TenantCarNumberExample, TenantCarNumberMapper> {
    TenantCarNumber selectDefaultCarNumber(Long memberId);

    List<String> listCarNum(MemberInfo member);

    PageInfo<TenantCarNumber> listPageCarNum(MemberInfo member, Integer pageNo, Integer pageSize);

    void saveOrUpdateCarNumber(MemberInfo memberInfo, TenantCarNumber carNumber);

    void updateDefault(MemberInfo member, Long numberId);
}
